package com.fesine.ch02.synLockIn_2;

/**
 * @Author: Fesine
 * @CreateDate:2016/6/28
 * @UpdateUser:修改人名称
 * @UpdateDate:2016/6/28
 * @UpdateRemark:修改具体的内容
 */
public class Sub extends Parent {
    synchronized public void operateSubI() {
        while (i > 0) {
            i--;
            System.out.println("sub print i=" + i);
            try {
                Thread.sleep(100);
                this.operateI();
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }
}
